bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 May 2021 13:49:03 +0000 (06:49 -0700)
committerAndrej Shadura <andrewsh@debian.org>
Tue, 20 Jan 2026 10:45:10 +0000 (11:45 +0100)
commitc1ea81e81394f99d9429744df6e233c060060e58
tree95ee06c89de3141ac81b52c44f8b81e2401001b6
parent5ec29a2005bebd50b880a2bbe56e41a2ec88caa8
bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099) (GH-25815)

Reverts commit e653d4d8e820a7a004ad399530af0135b45db27a and makes
parsing even more strict. Like socket.inet_pton() any leading zero
is now treated as invalid input.

Signed-off-by: Christian Heimes <christian@python.org>
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
(cherry picked from commit 60ce8f0be6354ad565393ab449d8de5d713f35bc)

Gbp-Pq: Name 0009-bpo-36384-Leading-zeros-in-IPv4-addresses-are-no-lon.patch
Doc/library/ipaddress.rst
Doc/tools/susp-ignored.csv
Lib/ipaddress.py
Lib/test/test_ipaddress.py